ReportSpecManager

Manager for memorized reports and graphs, provides notifications when changes are made. This class also consolidates code that was scattered in several user interface classes. This class has a reference to the root account object and the root account also has a reference to this class to delegate tasks to it.

Constructors

Link copied to clipboard
constructor(book: AccountBook)

Properties

Link copied to clipboard

A list of all (known) predefined reports, not including memorized reports

Link copied to clipboard

Return a list of all (known) graphs and reports, including builtins and memorized

Link copied to clipboard

Return a list of all memorized graphs and reports

Link copied to clipboard

A list of all the (known) graphs, including both builtin and memorized items

Link copied to clipboard

A list of the user's (known) memorized graphs from the current data file (excludes builtins)

Link copied to clipboard

The user's (known) memorized reports from the current data file (excludes builtins)

Link copied to clipboard

A list of all the (known) text reports, including both builtin and memorized items

Functions

Link copied to clipboard

Register an object that would like to receive notification when transactions have been modified, added, or removed.

Link copied to clipboard
Link copied to clipboard

Notify listeners that a memorized item has been modified.

Link copied to clipboard

Notify listeners that a memorized item has been removed.

Link copied to clipboard
Link copied to clipboard
fun streamItems(unrecognized: Boolean = false): Stream<ReportSpec>

Return a Stream that iterates over all the known reports (predefined plus memorized). The returned stream can easily be filtered by type, memorized status, or other attributes of the ReportSpec.